package homework.day07.bean;

/**
 * @author ThinkBook
 */
public class Floater extends Employee{
    private String name;
    private int hours;
    private double wages;
    public Floater(String name, String gender, String years, int hours){
        super(name,gender,years);
        this.name = name;
        this.hours = hours;
    }
    @Override
    public void computeSalary(){
        wages = this.hours*50;
        System.out.println("临时工"+name+"本月工资为"+wages);
    }
}
